﻿<%@ Page Title="医疗机构信息" Language="C#" MasterPageFile="~/Master/MasterPage.master"
    AutoEventWireup="true" CodeBehind="HospitalMange.aspx.cs" Inherits=" HZ.Supervise.Web.SystemManage.HospitalMange" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <%@ register src="~/Common/AreaControls.ascx" tagname="AreaControl" tagprefix="uc3" %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   <div class="search">
        <div class="search_item">
    <table>
      <tr>
        <td align="right"><asp:Label ID="Label1" runat="server" Text="医院编号："></asp:Label></td>
        <td align="left"><asp:TextBox ID="txtHospitalID" runat="server" Width="120px"></asp:TextBox></td>
        <td align="right"><asp:Label ID="Label2" runat="server" Text="医院名称："></asp:Label></td>
        <td align="left"><asp:TextBox ID="txtHospitalName" runat="server" Width="120px"></asp:TextBox></td>
        <td align="right"> 医院类型： </td>
        <td align="left"><asp:DropDownList ID="ddlIsCountry" runat="server">
          <asp:ListItem Value="0">所有医疗机构</asp:ListItem>
          <asp:ListItem Value="1">二三级医疗机构</asp:ListItem>
          <asp:ListItem Value="3">基层医疗机构</asp:ListItem>
          <asp:ListItem Value="2">社区医疗机构</asp:ListItem>
          <asp:ListItem Value="4">乡镇医疗机构</asp:ListItem>
        </asp:DropDownList></td>
        <td rowspan="2"><hz:HzButton ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" CssClass="btn" /></td>
      </tr>
      <tr>
        <td align="right"> 所在地区： </td>
        <td align="left">
            <uc3:AreaControl ID="AreaControl1" runat="server" />
        </td>
        <td align="right"> 是否政府办： </td>
        <td align="left"><asp:DropDownList ID="ddlIsGov" runat="server">
          <asp:ListItem Value="">全部基层医疗机构</asp:ListItem>
          <asp:ListItem Value="0">非政府办基层医疗机构</asp:ListItem>
          <asp:ListItem Value="1">政府办基层医疗机构</asp:ListItem>
        </asp:DropDownList></td>
      </tr>
    </table>
  </div>
  </div>
  <asp:GridView runat="server" ID="gvwHospital" AutoGenerateColumns="false" CssClass="mainlist"
        OnRowCommand="gvwHospital_RowCommand" DataKeyNames="HospitalID" EmptyDataText="暂无符合条件的数据！">
    <Columns>
      <asp:TemplateField HeaderText="序号">
        <ItemTemplate> <%#Container.DataItemIndex+1+AspNetPager1.PageSize*(AspNetPager1.CurrentPageIndex-1) %> </ItemTemplate>
        <HeaderStyle Width="40px" />
      </asp:TemplateField>
      <asp:BoundField DataField="HospitalID" HeaderText="医院编号" />
      <asp:TemplateField HeaderText="医院名称">
        <ItemTemplate> <a href="HospitalInfo.aspx?hID=<%# Eval("HospitalID") %>&flag=1">
          <asp:Label ID="lblHospitalName" runat="server" Text='<%# Eval("HospitalName") %>'
                            ToolTip="点击查看医院详情"></asp:Label>
        </a> </ItemTemplate>
      </asp:TemplateField>
      <asp:BoundField DataField="HospitalAddress" HeaderText="医院地址" />
      <asp:BoundField DataField="ContactPerson" HeaderText="联系人" />
      <asp:BoundField DataField="ContactTel" HeaderText="联系电话" />
      <asp:TemplateField HeaderText="是否基层">
        <ItemTemplate> 
            <%#Eval("IsCountry").ToString()=="0"?"否":"是"%>
        </ItemTemplate>
      </asp:TemplateField>
      <asp:TemplateField HeaderText="是否政府办">
        <ItemTemplate> 
            <%#Eval("IsGovernment").ToString() == "0" ? "否" : "是"%>
        </ItemTemplate>
      </asp:TemplateField> 
    </Columns>
  </asp:GridView>
  <div class="page">
    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged"> </webdiyer:AspNetPager>
  </div> 
</asp:Content>
